// @ts-ignore
/* eslint-disable */
import { api } from "@/utils/api";

/** 新增环保-危险废物管理表数据 POST /environmentalDangerInfo/add */
export async function environmentalDangerInfoAdd(
  body: BIZAPI.EnvironmentalDangerInfoCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function environmentalDangerInfoAdd(
  body: BIZAPI.EnvironmentalDangerInfoCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function environmentalDangerInfoAdd(
  body: BIZAPI.EnvironmentalDangerInfoCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function environmentalDangerInfoAdd(
  body: BIZAPI.EnvironmentalDangerInfoCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/environmentalDangerInfo/add`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/environmentalDangerInfo/add`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除环保-危险废物管理表数据 POST /environmentalDangerInfo/delete */
export async function environmentalDangerInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function environmentalDangerInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function environmentalDangerInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function environmentalDangerInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/environmentalDangerInfo/delete`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/environmentalDangerInfo/delete`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取环保-危险废物管理表数据 POST /environmentalDangerInfo/get */
export async function environmentalDangerInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultEnvironmentalDangerInfoEntity>;

export async function environmentalDangerInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultEnvironmentalDangerInfoEntity>>;

export async function environmentalDangerInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultEnvironmentalDangerInfoEntity>;

export async function environmentalDangerInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultEnvironmentalDangerInfoEntity>(
      `/app/environmentalDangerInfo/get`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultEnvironmentalDangerInfoEntity>(
    `/app/environmentalDangerInfo/get`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取环保-危险废物管理表VO数据 POST /environmentalDangerInfo/getVo */
export async function environmentalDangerInfoGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultEnvironmentalDangerInfoResp>;

export async function environmentalDangerInfoGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultEnvironmentalDangerInfoResp>>;

export async function environmentalDangerInfoGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultEnvironmentalDangerInfoResp>;

export async function environmentalDangerInfoGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultEnvironmentalDangerInfoResp>(
      `/app/environmentalDangerInfo/getVo`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultEnvironmentalDangerInfoResp>(
    `/app/environmentalDangerInfo/getVo`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取环保-危险废物管理表分页数据 POST /environmentalDangerInfo/page */
export async function environmentalDangerInfoPage(
  body: BIZAPI.EnvironmentalDangerInfoQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageEnvironmentalDangerInfoEntity>;

export async function environmentalDangerInfoPage(
  body: BIZAPI.EnvironmentalDangerInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageEnvironmentalDangerInfoEntity>>;

export async function environmentalDangerInfoPage(
  body: BIZAPI.EnvironmentalDangerInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageEnvironmentalDangerInfoEntity>;

export async function environmentalDangerInfoPage(
  body: BIZAPI.EnvironmentalDangerInfoQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageEnvironmentalDangerInfoEntity>(
      `/app/environmentalDangerInfo/page`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageEnvironmentalDangerInfoEntity>(
    `/app/environmentalDangerInfo/page`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 更新环保-危险废物管理表数据 POST /environmentalDangerInfo/update */
export async function environmentalDangerInfoUpdate(
  body: BIZAPI.EnvironmentalDangerInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function environmentalDangerInfoUpdate(
  body: BIZAPI.EnvironmentalDangerInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function environmentalDangerInfoUpdate(
  body: BIZAPI.EnvironmentalDangerInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function environmentalDangerInfoUpdate(
  body: BIZAPI.EnvironmentalDangerInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/environmentalDangerInfo/update`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/environmentalDangerInfo/update`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取环保-危险废物管理表VO分页数据 POST /environmentalDangerInfo/voPage */
export async function environmentalDangerInfoVoPage(
  body: BIZAPI.EnvironmentalDangerInfoQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageEnvironmentalDangerInfoResp>;

export async function environmentalDangerInfoVoPage(
  body: BIZAPI.EnvironmentalDangerInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageEnvironmentalDangerInfoResp>>;

export async function environmentalDangerInfoVoPage(
  body: BIZAPI.EnvironmentalDangerInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageEnvironmentalDangerInfoResp>;

export async function environmentalDangerInfoVoPage(
  body: BIZAPI.EnvironmentalDangerInfoQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageEnvironmentalDangerInfoResp>(
      `/app/environmentalDangerInfo/voPage`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageEnvironmentalDangerInfoResp>(
    `/app/environmentalDangerInfo/voPage`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
